<?php
namespace catchAdmin\registration\request;

use catcher\base\CatchRequest;

class SaveRequest extends CatchRequest
{
    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
            'taskname|任务名称' => 'require',
            'patient_num|患者数' => 'require',
            'endtime|结束时间' => 'require',
            'follow_staff|随访人员' => 'require',
        ];
    }

    protected function message(): array
    {
        return [
            'taskname.require' => '缺少任务名称',
            'patient_num.require' => '缺少患者数',
            'endtime.require' => '缺少结束时间',
            'follow_staff.require' => '缺少随访人员',
        ];
    }
}
